﻿using IntelligentAgriculture.Domain.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IntelligentAgriculture.Domain.Interface
{
    /// <summary>
    /// 种母断奶仓储接口
    /// </summary>
    public interface ISheepAblactationRepository
    {

        /// <summary>
        /// 获取档案表母羊在哺乳的耳号
        /// </summary>
        /// <returns></returns>
        Task<List<Sheepfilemodel>> GetEweEarTagsFromSheepFile();
        /// <summary>
        /// 获取羊只的栋舍
        /// </summary>
        /// <returns></returns>
        Task<List<Sheepfilemodel>> GetBuildByEar();
        /// <summary>
        /// 新增种母断奶
        /// </summary>
        /// <param name="sheepablactation">种母断奶实体</param>
        /// <returns></returns>
        Task<int> AddSheepAblactation(List<Sheepablactation> sheepablactation);
        /// <summary>
        /// 获取所有种母断奶数据
        /// </summary>
        /// <returns> 种母断奶数据列表 </returns>
        Task<List<Sheepablactation>> GetSheepAblactations();
        /// <summary>
        /// 逻辑删除种母断奶
        /// </summary>
        /// <param name="userId">用户Id</param>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task<int> DelSheepAblacations(int userId, params int[] ids);
    }
}
